/*
 * tarm_math.h
 *
 *  Created on: 2020年1月15日
 *      Author: tinnu
 */

#ifndef MIDDLEWARE_TARM_MATH_H_
#define MIDDLEWARE_TARM_MATH_H_


#include "arm_math.h"
#include "math.h"
#include "at32f4xx.h"

#define tarm_inv(n) 1/n
#define tarm_invsqrt(n) tarm_sqrt(1/n)
#define tarm_sin(n) arm_sin_f32(n)
#define tarm_cos(n) arm_cos_f32(n)

float tarm_sqrt(float input);

#endif /* MIDDLEWARE_TARM_MATH_H_ */
